""" 
CSDN : heart_6662
PYTHON amateur   
"""
# x = (input("请输入一个数：\n"))
# b = len(x)
# x = int(x)
# c = []
# while (x!=0):
#     c.append(x%10)
#     x/=10
#
#
# print(b)
# # print(c[::])
# 
# print ('输入大于10的数字：')
# n=input()
# #x=str(n)
# for i in range(len(n)-1,-1,-1):
#     print (n[i]),   # , 号设置不换行
# b=len(n)
# print(b)

x = int(input(":"))
a = len(x)
print(a)